const webpack = require('webpack');

var vendor = [
  'md5',
  'react',
  'redux',
  'lodash',
  'react-dom',
  'react-redux',
  'redux-logger',
  'react-router',
  'material-ui',
  'redux-devtools',
  'react-router-redux',
  'react-tap-event-plugin',
  'redux-devtools-dock-monitor',
  'redux-devtools-log-monitor',
  'react-addons-css-transition-group'
];

module.exports = {
  output: {
    path: 'libs',
    filename: '[name].js',
    library: '[name]',
  },
  entry: {
    vendor: vendor
  },
  plugins: [
    new webpack.DllPlugin({
      path: './libs/manifest.json',
      name: '[name]',
      context: __dirname,
    }),
    // new webpack.optimize.UglifyJsPlugin({
    //   compress: {
    //     warnings: false
    //   }
    // }),
  ],
};
